package com.crazy.bookstore.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author: 卢辉宇
 * @date: 2022/12/25 20:14
 * @description:
 */
@Data
@TableName("category") /*注解：给mybatisPlus说明映射到哪张表上的*/
public class Category {
    /*表的组件类型为自动模式*/
    @TableId(type = IdType.AUTO)
    private Long CategoryId;
    private String CategoryName;
}
